# 打印3~30内能被3整除的数
nums = list(range(0, 31, 3))
for num in nums:
    print(num)